<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:sec="http://www.springframework.org/security/facelets/tags">

<ui:component>

	<h:form id="menu_form">

		<c:if test="#{sec:isAuthenticated()}">		

		<rich:toolbar height="35px">
			<rich:dropDownMenu mode="ajax">
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="#{msg.system_manage}" styleClass="outputText" style="font-size: 16px;" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/manage/realtime.jsf'">
                    <h:outputText value="#{msg.real_time_control}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>               			
			</rich:dropDownMenu>
			
			<rich:dropDownMenu mode="ajax">
				<f:facet name="label">
					<h:panelGroup>
						<h:outputText value="#{msg.system_maintain}" styleClass="outputText" style="font-size: 16px;" />
					</h:panelGroup>
				</f:facet>
				<rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/usergroup.jsf'">
                    <h:outputText value="#{msg.usergroup_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
                <rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/userdetail.jsf'">
                    <h:outputText value="#{msg.userdetail_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
                <rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/building.jsf'">
                    <h:outputText value="#{msg.building_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
                <rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/floor.jsf'">
                    <h:outputText value="#{msg.floor_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
                <rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/room.jsf'">
                    <h:outputText value="#{msg.room_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
                <rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/machine.jsf'">
                    <h:outputText value="#{msg.machine_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
                <rich:menuItem submitMode="client"
                    onclick="document.location.href='#{facesContext.externalContext.requestContextPath}/pages/maintain/floorplan.jsf'">
                    <h:outputText value="#{msg.floorplan_maintain}" styleClass="outputText" style="font-size: 16px;" />
                </rich:menuItem>
				
			</rich:dropDownMenu>
		</rich:toolbar>
			<h:outputLink value="${facesContext.externalContext.requestContextPath}/j_spring_security_logout">logout</h:outputLink>
		</c:if>
	</h:form>
</ui:component>
</html>
